package com.mes.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 生产报工
 */
@Controller
@RequestMapping(value="/index")
public class IndexController {
	
	@RequestMapping(value="/informWork.html")
	public String informWork(HttpServletRequest request, HttpServletResponse response) throws IOException{
		return "informWork";
	}
	
	@RequestMapping(value="/quality.html")
	public String quality(HttpServletRequest request, HttpServletResponse response) throws IOException{
		return "quality";
	}
	
	@RequestMapping(value="/page.html")
	public String page(HttpServletRequest request, HttpServletResponse response) throws IOException{
		return "index";
	}
	
	@RequestMapping(value="/loginOut.html")
	public String loginOut(HttpServletRequest request, HttpServletResponse response) throws IOException{
		request.getSession().invalidate();
		return "index";
	}
}